﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Threading;
using BattleShips.GameServers;
using System.Net;

namespace TestServer {
    class Program {
        static void Main(string[] args) {
            IPAddress serverIP = IPAddress.Any;
            int port = 0;

            CreateServers createServer = new CreateServers();

            createServer.CreateServer = new Action<IPAddress, int>((ServerIPAddress, ServerConnectionPort) => {
                serverIP = ServerIPAddress;
                port = ServerConnectionPort;
                createServer.Dispose();
            });

            createServer.ShowDialog();

            Server server = new Server(serverIP, port);
        }
    }
}

